package com.adbj.finaltest;

public class Test extends FinalMethod implements A,B{
    //final int i=10;
    public static void main(String[] args) {
      /*  FilalClassTest filalClassTest=new FilalClassTest();
        filalClassTest.name="李四";
        FilalClassTest filalClassTest1=new FilalClassTest();
        filalClassTest1.name="王五";
        //filalClassTest=filalClassTest1;
        System.out.println(filalClassTest.hashCode()+";;;"+filalClassTest1.hashCode());

        String s=new String("123");
        String ss=new String("123");

        System.out.println(s.length());

        int[] aaaaa=new int [4];
        System.out.println(aaaaa.length);
*/
        test();
    }


    @Override
    public void eat(){

    }



    public static int test(){
        int i=1;
        i=i/0;
        try{
            System.out.println("try");
            return i;
        }catch (ArithmeticException e){
            System.out.println(i);
            e.printStackTrace();
            return i;
        }
        finally {
            System.out.println("finally");
        }

    }
}
